<?php $this->layout('./layout.html', ['title'=>'[menu list]']); ?>

<?php $this->start('main') ?>
<div class="section-main">
    This is section main content. oho
</div>
<?php $this->end() ?>

<div id="menu-list">
    <p>menu list pargraph</p>
    <ul>
        <?php foreach($menu as $k=>$v): ?>
        <li>
            <?php if(is_array($v)): ?>
            <?=json_encode($v)?>
            <?php else: ?>
            <?=$v?>
            <?php endif ?>
        </li>
        <?php endforeach ?>
    </ul>
</div>